package com.situ.day14;

public enum GenderEnum {
	//The constructor GenderEnum(String) is undefined
	//调用GenderEnum(String)构造方法
	MALE("男"),FEMALE("女");
	private String value;
	
	//Illegal modifier for the enum constant GenderEnum; no modifier is allowed
	//构造方法私有，外界不能new这个枚举，new枚举对象只能内部MALE("男"),FEMALE("女");
	private GenderEnum(String value) {
		this.value = value;
	}
	
	public String getValue() {
		return value;
	}
}
